wayland: Implement DND icon hotspot API
authorJonas Ådahl <jadahl@gmail.com>
Tue, 8 Dec 2015 10:19:33 +0000 (18:19 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Dec 2015 14:16:46 +0000 (09:16 -0500)
commit561833334b470fd668c38b32e327660cba29e829
tree5b72a693dbdf1242f7b1286911623b46cc530ddc
parent8884e82af8f0a8ef18fa1dcb055b51f7f17550fb
wayland: Implement DND icon hotspot API

In Wayland, the hotspot of a DND icon is set using the buffer offset in
wl_buffer.attach. To implement this, add a private API to cause the
next wl_surface.attach to offset the new buffer with a given offset.
Setting a DND icon hotspot sets this offset while also queuing a redraw
of the window to trigger the wl_surface.attach.

https://bugzilla.gnome.org/show_bug.cgi?id=759168
gdk/wayland/gdkdnd-wayland.c
gdk/wayland/gdkprivate-wayland.h
gdk/wayland/gdkwindow-wayland.c